import {
	http
} from "../config.js";
// 获取验证码	POST /ajax/sendByPhone
export const sendCode = (params) => {
	return http.post("ajax/sendByPhone",params, true,false)
}
// 登录 POST /front/login  获取token
export const tokenLogin = (params) => {
	return http.post("front/login", params, true,false);
}
// 注册	POST /front/register
export const register = (params) => {
	return http.post("front/register",params, true,false)
}
// 修改登录密码 POST /front/user/update/pwd  获取token
export const updatePwd = (params) => {
	return http.post("front/user/update/pwd", params, true,false);
}
// 修改登录密码 POST /front/user/update/pwd  不需要token
export const resetLoginPwd = (params) => {
	return http.post("front/user/resetLoginPwd", params, true,false);
}
// 登出POST /front/logout
export const quitLogin = (params) => {
	return http.post("front/logout");
}